<?php
        $dataProvider = $_SESSION['datosI']->getData();
?>

    <table align="center"><tr>
    <td align="center"><b>Inventario</b></td>
    </tr></table>
        <table class="detail-view2" repeat_header="1" cellpadding="1" cellspacing="1" width="100%" border="1">
            <tr class="principal">
                <td class="principal" width="7%">&nbsp;Código</td>
                <td class="principal" width="25%">&nbsp;Descripcion</td>
                <td class="principal" width="14%">&nbsp;Cantidad</td>
                <td class="principal" width="25%">&nbsp;Precio</td>
                <td class="principal" width="14%">&nbsp;PrecioV</td>
                <td class="principal" width="14%">&nbsp;Impuesto</td>
                <td class="principal" width="25%">&nbsp;Proceso</td>
                <td class="principal" width="14%">&nbsp;Estado</td>

            </tr>
<?php
         $i=0;
         $val=count($dataProvider);
         
         while($i<$val){
             if ($dataProvider[$i]["ESTADO"]==1):
                    $a="Activo(a)";
            else:
                    $a="Inactivo(a)";
                endif;

            $imp=$dataProvider[$i]["IMPUESTO"]*13;
?>
            <tr>
                <td width="7%">&nbsp;<?php echo $dataProvider[$i]["IDINVENTARIO"];?></td>
                <td width="19%">&nbsp;<?php echo $dataProvider[$i]["DESCRIPCION"];?></td>
                <td width="19%">&nbsp;<?php echo $dataProvider[$i]["CANTIDAD"]; ?></td>
                <td width="19%">&nbsp;<?php echo $dataProvider[$i]["PRECIO"]; ?></td>
                <td width="19%">&nbsp;<?php echo $dataProvider[$i]["PRECIOV"]; ?></td>
                <td width="19%">&nbsp;<?php echo $imp; ?></td>
                <td width="19%">&nbsp;<?php echo $dataProvider[$i]["PROCESO"]; ?></td>
                <td width="19%">&nbsp;<?php echo $a; ?></td>
</tr> <?php $i++; 
        }?>
    </table>